﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace BTAlertWinService.Logging
{
    public class FileLogger 
    {
        

        public static void Log(string message)
        {
            string filePath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + @"/BTAlerts_log.txt";
            string[] lines = { message };
            try
            {             
                File.AppendAllLines(filePath, lines);
            }
            catch { };

        }
    }
}
